<template>
	<view>
		<pubTitle></pubTitle>
		
		<view>新闻页面</view>
		<navigator class="nav" url="../test/test001"> 测试双向绑定 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test002"> 测试表单 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test003"> 测试自定义组件 </navigator>
		-------------------------------
		<view class="nav" @click="goTest003"> 手动跳转到自定义组件 </view>
		-------------------------------
		<navigator class="nav" url="../test/test004?name=zhangsan"> 测试跳转传参 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test005"> 提示框 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test006"> 导航栏设置 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test007"> 网络请求 </navigator>
		-------------------------------
		<navigator class="nav" url="../test/test009"> 数据缓存 </navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goTest003(){
				uni.navigateTo({
					url:'/pages/test/test003'
				})
			},
			
		},
		onLoad() {
			//进入新闻界面，去掉未读消息角标
			uni.removeTabBarBadge({
				index:1
			});
		}
	}
</script>

<style lang="scss">
	.nav{
		line-height: 90rpx;
		background-color: #ccc;
		text-align: center;
	}

</style>
